projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c535fe6
)
Fix I-search at EOB when long lines are truncated
author
Eli Zaretskii
<eliz@gnu.org>
Sat, 13 Feb 2021 15:27:02 +0000
(17:27 +0200)
committer
Eli Zaretskii
<eliz@gnu.org>
Sat, 13 Feb 2021 15:27:02 +0000
(17:27 +0200)
* src/xdisp.c (move_it_to): Fix logic when TO_CHARPOS is at the
end of an hscrolled line which ends at EOB. (Bug#46316)
src/xdisp.c
patch
|
blob
|
history
diff --git
a/src/xdisp.c
b/src/xdisp.c
index 125d3ed7f0f6be09e8eb710c0cb8ebb187206f84..a1956824214771e79019b4f430909c507db409a4 100644
(file)
--- a/
src/xdisp.c
+++ b/
src/xdisp.c
@@
-10049,7
+10049,9
@@
move_it_to (struct it *it, ptrdiff_t to_charpos, int to_x, int to_y, int to_vpos
it->continuation_lines_width = 0;
reseat_at_next_visible_line_start (it, false);
if ((op & MOVE_TO_POS) != 0
- && IT_CHARPOS (*it) > to_charpos)
+ && (IT_CHARPOS (*it) > to_charpos
+ || (IT_CHARPOS (*it) == to_charpos
+ && to_charpos == ZV)))
{
reached = 9;
goto out;